#ifndef XINXIWIDGET_H
#define XINXIWIDGET_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QGroupBox>
#include <QDialog>
#include <QByteArray>
namespace Ui {
class xinxiWidget;
}

class xinxiWidget : public QWidget
{
    Q_OBJECT

public:
    explicit xinxiWidget(QWidget *parent = nullptr);
    ~xinxiWidget();

private slots:
    void on_pushButton_TianJia_clicked();

    void on_pushButton_ShanChuXiang_clicked();

    void on_pushButton_ShanChuHang_clicked();

private:
    Ui::xinxiWidget *ui;
    void refreshTable();
    QGroupBox * createFormGroup();
    QGroupBox * createPhotoGroup();
    void handleDialogAccepted(QGroupBox *formGroup, QGroupBox *photoGroup);
    QByteArray photoData;
};

#endif // XINXIWIDGET_H
